package org.hxyjs.service;

import org.hxyjs.dto.DTO;
import org.hxyjs.entity.Expert;
import org.hxyjs.entity.Expert;
import org.hxyjs.page.PageInfo;

public interface ExpertService {
    /**
     * 查询全部学生
     * @return
     */
    public DTO<Expert> getAllExperts() throws Exception;

    /**
     * 删除学生
     * @param eno
     * @return
     * @throws Exception
     */
    public DTO<Expert> deleteExpertByEno(String eno) throws Exception;
    /**
     *  修改学生
     * @param expert
     * @return
     */
    public DTO<Expert> updateExpertByEno(Expert expert)  throws Exception;
    /**
     *  增加学生
     * @param expert
     * @return
     */
    public DTO<Expert> addExpert(Expert expert)  throws Exception;

    /**
     * 根据主键查询学生
     * @param eno
     * @return
     * @throws Exception
     */
    public DTO<Expert> getExpertByEno(String eno) throws Exception;

    /**
     *分页查询
     * @param pageInfo
     * @return
     * @throws Exception
     */
     public DTO<Expert> getExpertByPage(PageInfo pageInfo ,String cacheId) throws Exception;

     public DTO<Expert> getExpertByPage(PageInfo pageInfo) throws Exception;



}
